// 定义小仓库state的类型
import { RouteRecordRaw } from "vue-router";
import { CategoryObj } from "@/api/product/attr/type.ts";

// 定义User仓库的类型
export interface UserState {
  token: string | null;
  menuRoutes: RouteRecordRaw[];
  username: string;
  avatar: string;
  buttons: string[];
}

// 定义Category仓库的类型
export interface CategoryState {
  c1Arr: CategoryObj[];
  c1Id: string | number;
  c2Arr: CategoryObj[];
  c2Id: string | number;
  c3Arr: CategoryObj[];
  c3Id: string | number;
}
